<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2018/12/24
 * Time: 9:14
 */

namespace app\crm\model;


use think\Db;

class GameTagModel
{
    public static $table = 'game_tag';

    public static function all($where=[])
    {
        $db = Db::name(self::$table);
        return $db->select();
    }

    public static function pagination($pageSize)
    {
        $db = Db::name(self::$table);

        $db->order('add_time', 'desc');
        return $db->paginate($pageSize);
    }

    public static function insert($data)
    {
        return Db::name(self::$table)->insert($data);
    }
}